#include<iostream>
#include "ThreadPool.hpp"
#include "Task.hpp"
#include "Log.hpp"

using namespace ThreadPoolModule;
int main()
{
    //ENABLE_CONSOLE_LOG();
    ENABLE_FILE_LOG();
    
    auto tp =  std::make_unique<ThreadPool<task_t>>();
    tp->Start();

    int cnt = 10;
    while(cnt--)
    {
        tp->Equeue(Push);
    }
    tp->Join();

}